package Domain;
/*
定义一个女朋友类（GirlFriend）女朋友的属性包含：姓名，身高，体重。行为包含：洗衣服wash()，做饭cook()。
 */
public class GirlFriend {
    private String name;
    private double height;
    private double weight;
//Constructor=======================================================
    public GirlFriend() {

    }

    public GirlFriend(String name, double height, double weight) {
        this.name = name;
        this.height = height;
        this.weight = weight;
    }

    //Getter and Setter=================================================
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    //Method============================================================
    public void cook(){
        System.out.println("女朋友给我做饭");
    }

    public void wash(){
        System.out.println("女朋友帮我洗衣服");
    }

    public void show(){
        System.out.println("我女朋友叫"+getName()+",身高"+getHeight()+"厘米,体重"+getWeight()+"斤");
    }
}
